package map;

public class Region {
	
	private Layer[] layers;
	private Map map;
	private int mapX;
	private int mapY;
	
	public Region(Map map, int x, int y) {
		this.map = map;
		mapX = x;
		mapY = y;
		layers = new Layer[1];
		layers[0] = new Layer(this, 0);
	}
	
	public void setMap(Map map) {
		this.map = map;
	}
	
	public Map getMap() {
		return map;
	}
	
	public void setLayers(Layer[] layers) {
		this.layers = layers;
	}
	
	public Layer getLayer(int id) {
		return layers[id];
	}
	
	public Layer[] getLayers() {
		return layers;
	}
	
	public int getMapX() {
		return mapX;
	}

	public void setMapX(int mapX) {
		this.mapX = mapX;
	}

	public int getMapY() {
		return mapY;
	}

	public void setMapY(int mapY) {
		this.mapY = mapY;
	}
}
